<?php

namespace app\admin\model\questions;

use app\admin\model\Models;

class Opt extends Models
{

    /**
     * 关闭时间戳
     * @var string|bool
     */
    protected $autoWriteTimestamp = false;

    /**
     * 定义全局的查询范围
     * @var array
     */
    protected $globalScope = ['sequence'];

    /**
     * @param Models $query
     */
    public function scopeSequence($query)
    {
        $query->order('sequence', 'asc');
    }

}
